<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: CPulseAudioIO Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-types">Private Types</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">CPulseAudioIO Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="CPulseAudioIO" --><!-- doxytag: inherits="ISampleIO" -->
<p><code>#include &lt;<a class="el" href="pulse__audio__io_8h_source.html">pulse_audio_io.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for CPulseAudioIO:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classCPulseAudioIO.png" usemap="#CPulseAudioIO_map" alt=""/>
  <map id="CPulseAudioIO_map" name="CPulseAudioIO_map">
<area href="classISampleIO.html" alt="ISampleIO" shape="rect" coords="0,0,98,24"/>
</map>
 </div></div>

<p><a href="classCPulseAudioIO-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#ab24c6486ad984144bcf9dc87186ce77d">CPulseAudioIO</a> (<a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> pAction, unsigned int pChannels)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a51a0a796bf98599449617f1e174675bb">CPulseAudioIO</a> (<a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> pAction, unsigned int pChannels, <a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> pStreamInfo)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a2ae8892c632b958a67a3a4ff84007332">CPulseAudioIO</a> (<a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> pAction)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#ad6dce07cb44567eaf842d69ab3f56300">~CPulseAudioIO</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a97ada1fd9b0e5e36344699ece7ab912d">init</a> (<a class="el" href="properties__reader_8h.html#a67847fd00cb49d80dd45f61722eb9a43">CPropertiesReader</a> *pConfig)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a41f9f94d6940a71fde5ce02496352a27">destroy</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a53f27db815744617a085f466693763ed">read</a> (void **pData, <a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> &amp;pAction, int pTimeout=1000)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#aaadbf39f26d049651660973359ed9d31">write</a> (void *pData, const <a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> &amp;pAction, int pLength)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#aca9462dd9658c52e384d312606559a8d">getStreamInfo</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-types"></a>
Private Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a36e568f989dec5ee9ec49983f3c1f24e">EInitError</a> { <a class="el" href="classCPulseAudioIO.html#a36e568f989dec5ee9ec49983f3c1f24eacbdf5e234b007e77a2336265232b9db6">INIT_NO_ERROR</a> =  0, 
<a class="el" href="classCPulseAudioIO.html#a36e568f989dec5ee9ec49983f3c1f24eab8b38c7cdb04cfb8d7aa1758bb2c2f69">INIT_FAILURE</a> =  1, 
<a class="el" href="classCPulseAudioIO.html#a36e568f989dec5ee9ec49983f3c1f24ea84b61e26516caaf4bb8b0b6958341572">INIT_CAPTURE_ERROR</a> =  2, 
<a class="el" href="classCPulseAudioIO.html#a36e568f989dec5ee9ec49983f3c1f24eaea14a43be6e74cadf63111c72cace28f">INIT_PLAYBACK_ERROR</a> =  3
 }</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#aaeb7261d1c84694292a05a4f7165854c">CPulseAudioIO</a> (const <a class="el" href="classCPulseAudioIO.html">CPulseAudioIO</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCPulseAudioIO.html">CPulseAudioIO</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a0d802a47c61411acb8fb351da56eb959">operator=</a> (const <a class="el" href="classCPulseAudioIO.html">CPulseAudioIO</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a89ccafd6befb04a2c5eb0fd4d9759aad">initPlayback</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a3e44d30d8d8c2cf456e2d3c51ac92b66">initCapture</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a0517bc1d6bc43e0b80eeafbb806be42c">getBytePerSample</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#ac6f486fc8d06afc078acdd756be90c44">getPASampleSpecsFromStreamInfo</a> (pa_sample_spec &amp;pSampleSpec, bool pForCapture)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCPulseAudioIO.html#a36e568f989dec5ee9ec49983f3c1f24e">EInitError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#ad7cffabc03bbc6c71b0b9cbd7e59e8e2">mError</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a68b4534614245107afe37dd8fadb6bf2">mAction</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a6925cb7f0e52cd1d4fc3fb562d909e52">mPlaybackChannels</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">pa_simple *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#acc6b4fbe405b9a513ee0efef0f864e2f">mPlaybackHandle</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a8467595676e4ffa0fd84a8de7687b1b0">mCaptureChannels</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">pa_simple *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a476360509aac6aca6f534accbd3e5d4b">mCaptureHandle</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a55b5e65d0e69b684ab6b2751afc4167c">mCaptureBuffer</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#aeed876c7ab0e2e622964b825264e5619">mStreamInfo</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a61853857bbd1a6bb31251f90f44b16c2">mBytePerSample</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#abd6031729829df6ef5fdea13f6612be2">mDoPlayback</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#af7d3fbd218e4819dc65579328f80335c">mDoCapture</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a037c18f76fe11bf5c741eefafb71af53">mCaptureSource</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#afbe2c62f1f8693deb97d56444529e5da">mPlaybackSink</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a6d2d16c1ca671017a7029403cca4c115">sIniSectionName</a> = &quot;PULSE_IO&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#af15ca89d1bcef2c6d9e2d75211a84b30">sConfPlaybackSink</a> = &quot;PLAYBACK_SINK&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPulseAudioIO.html#a62de8cacc98e09140cc329c0ba7e0996">sConfCaptureSource</a> = &quot;CAPTURE_SOURCE&quot;</td></tr>
</table>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a36e568f989dec5ee9ec49983f3c1f24e"></a><!-- doxytag: member="CPulseAudioIO::EInitError" ref="a36e568f989dec5ee9ec49983f3c1f24e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classCPulseAudioIO.html#a36e568f989dec5ee9ec49983f3c1f24e">CPulseAudioIO::EInitError</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a36e568f989dec5ee9ec49983f3c1f24eacbdf5e234b007e77a2336265232b9db6"></a><!-- doxytag: member="INIT_NO_ERROR" ref="a36e568f989dec5ee9ec49983f3c1f24eacbdf5e234b007e77a2336265232b9db6" args="" -->INIT_NO_ERROR</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a36e568f989dec5ee9ec49983f3c1f24eab8b38c7cdb04cfb8d7aa1758bb2c2f69"></a><!-- doxytag: member="INIT_FAILURE" ref="a36e568f989dec5ee9ec49983f3c1f24eab8b38c7cdb04cfb8d7aa1758bb2c2f69" args="" -->INIT_FAILURE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a36e568f989dec5ee9ec49983f3c1f24ea84b61e26516caaf4bb8b0b6958341572"></a><!-- doxytag: member="INIT_CAPTURE_ERROR" ref="a36e568f989dec5ee9ec49983f3c1f24ea84b61e26516caaf4bb8b0b6958341572" args="" -->INIT_CAPTURE_ERROR</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a36e568f989dec5ee9ec49983f3c1f24eaea14a43be6e74cadf63111c72cace28f"></a><!-- doxytag: member="INIT_PLAYBACK_ERROR" ref="a36e568f989dec5ee9ec49983f3c1f24eaea14a43be6e74cadf63111c72cace28f" args="" -->INIT_PLAYBACK_ERROR</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab24c6486ad984144bcf9dc87186ce77d"></a><!-- doxytag: member="CPulseAudioIO::CPulseAudioIO" ref="ab24c6486ad984144bcf9dc87186ce77d" args="(EAction pAction, unsigned int pChannels)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPulseAudioIO::CPulseAudioIO </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a>&#160;</td>
          <td class="paramname"><em>pAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pChannels</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a51a0a796bf98599449617f1e174675bb"></a><!-- doxytag: member="CPulseAudioIO::CPulseAudioIO" ref="a51a0a796bf98599449617f1e174675bb" args="(EAction pAction, unsigned int pChannels, NAudioFormats::SStreamInfo pStreamInfo)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPulseAudioIO::CPulseAudioIO </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a>&#160;</td>
          <td class="paramname"><em>pAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pChannels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a>&#160;</td>
          <td class="paramname"><em>pStreamInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2ae8892c632b958a67a3a4ff84007332"></a><!-- doxytag: member="CPulseAudioIO::CPulseAudioIO" ref="a2ae8892c632b958a67a3a4ff84007332" args="(EAction pAction)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPulseAudioIO::CPulseAudioIO </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a>&#160;</td>
          <td class="paramname"><em>pAction</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad6dce07cb44567eaf842d69ab3f56300"></a><!-- doxytag: member="CPulseAudioIO::~CPulseAudioIO" ref="ad6dce07cb44567eaf842d69ab3f56300" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPulseAudioIO::~CPulseAudioIO </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aaeb7261d1c84694292a05a4f7165854c"></a><!-- doxytag: member="CPulseAudioIO::CPulseAudioIO" ref="aaeb7261d1c84694292a05a4f7165854c" args="(const CPulseAudioIO &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPulseAudioIO::CPulseAudioIO </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCPulseAudioIO.html">CPulseAudioIO</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a41f9f94d6940a71fde5ce02496352a27"></a><!-- doxytag: member="CPulseAudioIO::destroy" ref="a41f9f94d6940a71fde5ce02496352a27" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CPulseAudioIO::destroy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classISampleIO.html#a4a3ef7be5c5abba7f9993913380cb14f">ISampleIO</a>.</p>

</div>
</div>
<a class="anchor" id="a0517bc1d6bc43e0b80eeafbb806be42c"></a><!-- doxytag: member="CPulseAudioIO::getBytePerSample" ref="a0517bc1d6bc43e0b80eeafbb806be42c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CPulseAudioIO::getBytePerSample </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ac6f486fc8d06afc078acdd756be90c44"></a><!-- doxytag: member="CPulseAudioIO::getPASampleSpecsFromStreamInfo" ref="ac6f486fc8d06afc078acdd756be90c44" args="(pa_sample_spec &amp;pSampleSpec, bool pForCapture)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CPulseAudioIO::getPASampleSpecsFromStreamInfo </td>
          <td>(</td>
          <td class="paramtype">pa_sample_spec &amp;&#160;</td>
          <td class="paramname"><em>pSampleSpec</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>pForCapture</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Save all sample informations to pSampleSpec. This includes: pa_sample_format_t format - The sample format. uint32_t rate - The sample rate. uint8_t channels - Audio channels.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pSampleSpec</td><td>For storing the sample specifications </td></tr>
    <tr><td class="paramname">pForCapture</td><td>If true then mCaptureChannels will be saved to channels. Otherwise mPlaybackChannels </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>True for successful execution </dd></dl>

</div>
</div>
<a class="anchor" id="aca9462dd9658c52e384d312606559a8d"></a><!-- doxytag: member="CPulseAudioIO::getStreamInfo" ref="aca9462dd9658c52e384d312606559a8d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> CPulseAudioIO::getStreamInfo </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Implements <a class="el" href="classISampleIO.html#a9e43c9190bd486f654f930aa49af48d1">ISampleIO</a>.</p>

</div>
</div>
<a class="anchor" id="a97ada1fd9b0e5e36344699ece7ab912d"></a><!-- doxytag: member="CPulseAudioIO::init" ref="a97ada1fd9b0e5e36344699ece7ab912d" args="(CPropertiesReader *pConfig)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CPulseAudioIO::init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="properties__reader_8h.html#a67847fd00cb49d80dd45f61722eb9a43">CPropertiesReader</a> *&#160;</td>
          <td class="paramname"><em>pConfig</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="note"><dt><b>Note:</b></dt><dd>The instance of the properties reader will be freed (delete) by the main programm and is not allowed by the deconstructor of an inherit IO class.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pConfig</td><td>pointer to the properties reader </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 on success, -1 otherwise </dd></dl>

<p>Implements <a class="el" href="classISampleIO.html#ab8ef7dd9048d0944d3c5f50329e0874d">ISampleIO</a>.</p>

</div>
</div>
<a class="anchor" id="a3e44d30d8d8c2cf456e2d3c51ac92b66"></a><!-- doxytag: member="CPulseAudioIO::initCapture" ref="a3e44d30d8d8c2cf456e2d3c51ac92b66" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CPulseAudioIO::initCapture </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a89ccafd6befb04a2c5eb0fd4d9759aad"></a><!-- doxytag: member="CPulseAudioIO::initPlayback" ref="a89ccafd6befb04a2c5eb0fd4d9759aad" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CPulseAudioIO::initPlayback </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a0d802a47c61411acb8fb351da56eb959"></a><!-- doxytag: member="CPulseAudioIO::operator=" ref="a0d802a47c61411acb8fb351da56eb959" args="(const CPulseAudioIO &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCPulseAudioIO.html">CPulseAudioIO</a>&amp; CPulseAudioIO::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCPulseAudioIO.html">CPulseAudioIO</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a53f27db815744617a085f466693763ed"></a><!-- doxytag: member="CPulseAudioIO::read" ref="a53f27db815744617a085f466693763ed" args="(void **pData, EAction &amp;pAction, int pTimeout=1000)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CPulseAudioIO::read </td>
          <td>(</td>
          <td class="paramtype">void **&#160;</td>
          <td class="paramname"><em>pData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> &amp;&#160;</td>
          <td class="paramname"><em>pAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pTimeout</em> = <code>1000</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pData</td><td>Array of bytes, read from media. The buffer for data will be provided by the read method. Therefore a void** and not a void* is needed. </td></tr>
    <tr><td class="paramname">pAction</td><td>displays what has to be done, it also enables the direction from which data came from </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>number of bytes read, 0 for EOF and -1 for a timeout or an error </dd></dl>

<p>Implements <a class="el" href="classISampleIO.html#a5843d1feda7bfffb86dd260a08f5516d">ISampleIO</a>.</p>

</div>
</div>
<a class="anchor" id="aaadbf39f26d049651660973359ed9d31"></a><!-- doxytag: member="CPulseAudioIO::write" ref="aaadbf39f26d049651660973359ed9d31" args="(void *pData, const EAction &amp;pAction, int pLength)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CPulseAudioIO::write </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>pData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> &amp;&#160;</td>
          <td class="paramname"><em>pAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pLength</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pData</td><td>Address of the Buffer which will be written to the media. </td></tr>
    <tr><td class="paramname">pAction</td><td>displays what has to be done, it also enables the direction from which data came from </td></tr>
    <tr><td class="paramname">pLength</td><td>Length/Size of the buffer (unit: byte) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>number of bytes written or -1 for an error </dd></dl>

<p>Implements <a class="el" href="classISampleIO.html#ae2026aece7114980b715076b45b906f9">ISampleIO</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a68b4534614245107afe37dd8fadb6bf2"></a><!-- doxytag: member="CPulseAudioIO::mAction" ref="a68b4534614245107afe37dd8fadb6bf2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> <a class="el" href="classCPulseAudioIO.html#a68b4534614245107afe37dd8fadb6bf2">CPulseAudioIO::mAction</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a61853857bbd1a6bb31251f90f44b16c2"></a><!-- doxytag: member="CPulseAudioIO::mBytePerSample" ref="a61853857bbd1a6bb31251f90f44b16c2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCPulseAudioIO.html#a61853857bbd1a6bb31251f90f44b16c2">CPulseAudioIO::mBytePerSample</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a55b5e65d0e69b684ab6b2751afc4167c"></a><!-- doxytag: member="CPulseAudioIO::mCaptureBuffer" ref="a55b5e65d0e69b684ab6b2751afc4167c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="classCPulseAudioIO.html#a55b5e65d0e69b684ab6b2751afc4167c">CPulseAudioIO::mCaptureBuffer</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8467595676e4ffa0fd84a8de7687b1b0"></a><!-- doxytag: member="CPulseAudioIO::mCaptureChannels" ref="a8467595676e4ffa0fd84a8de7687b1b0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCPulseAudioIO.html#a8467595676e4ffa0fd84a8de7687b1b0">CPulseAudioIO::mCaptureChannels</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a476360509aac6aca6f534accbd3e5d4b"></a><!-- doxytag: member="CPulseAudioIO::mCaptureHandle" ref="a476360509aac6aca6f534accbd3e5d4b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pa_simple* <a class="el" href="classCPulseAudioIO.html#a476360509aac6aca6f534accbd3e5d4b">CPulseAudioIO::mCaptureHandle</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a037c18f76fe11bf5c741eefafb71af53"></a><!-- doxytag: member="CPulseAudioIO::mCaptureSource" ref="a037c18f76fe11bf5c741eefafb71af53" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* <a class="el" href="classCPulseAudioIO.html#a037c18f76fe11bf5c741eefafb71af53">CPulseAudioIO::mCaptureSource</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af7d3fbd218e4819dc65579328f80335c"></a><!-- doxytag: member="CPulseAudioIO::mDoCapture" ref="af7d3fbd218e4819dc65579328f80335c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classCPulseAudioIO.html#af7d3fbd218e4819dc65579328f80335c">CPulseAudioIO::mDoCapture</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="abd6031729829df6ef5fdea13f6612be2"></a><!-- doxytag: member="CPulseAudioIO::mDoPlayback" ref="abd6031729829df6ef5fdea13f6612be2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classCPulseAudioIO.html#abd6031729829df6ef5fdea13f6612be2">CPulseAudioIO::mDoPlayback</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad7cffabc03bbc6c71b0b9cbd7e59e8e2"></a><!-- doxytag: member="CPulseAudioIO::mError" ref="ad7cffabc03bbc6c71b0b9cbd7e59e8e2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCPulseAudioIO.html#a36e568f989dec5ee9ec49983f3c1f24e">EInitError</a> <a class="el" href="classCPulseAudioIO.html#ad7cffabc03bbc6c71b0b9cbd7e59e8e2">CPulseAudioIO::mError</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6925cb7f0e52cd1d4fc3fb562d909e52"></a><!-- doxytag: member="CPulseAudioIO::mPlaybackChannels" ref="a6925cb7f0e52cd1d4fc3fb562d909e52" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCPulseAudioIO.html#a6925cb7f0e52cd1d4fc3fb562d909e52">CPulseAudioIO::mPlaybackChannels</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="acc6b4fbe405b9a513ee0efef0f864e2f"></a><!-- doxytag: member="CPulseAudioIO::mPlaybackHandle" ref="acc6b4fbe405b9a513ee0efef0f864e2f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pa_simple* <a class="el" href="classCPulseAudioIO.html#acc6b4fbe405b9a513ee0efef0f864e2f">CPulseAudioIO::mPlaybackHandle</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="afbe2c62f1f8693deb97d56444529e5da"></a><!-- doxytag: member="CPulseAudioIO::mPlaybackSink" ref="afbe2c62f1f8693deb97d56444529e5da" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* <a class="el" href="classCPulseAudioIO.html#afbe2c62f1f8693deb97d56444529e5da">CPulseAudioIO::mPlaybackSink</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aeed876c7ab0e2e622964b825264e5619"></a><!-- doxytag: member="CPulseAudioIO::mStreamInfo" ref="aeed876c7ab0e2e622964b825264e5619" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> <a class="el" href="classCPulseAudioIO.html#aeed876c7ab0e2e622964b825264e5619">CPulseAudioIO::mStreamInfo</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a62de8cacc98e09140cc329c0ba7e0996"></a><!-- doxytag: member="CPulseAudioIO::sConfCaptureSource" ref="a62de8cacc98e09140cc329c0ba7e0996" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string <a class="el" href="classCPulseAudioIO.html#a62de8cacc98e09140cc329c0ba7e0996">CPulseAudioIO::sConfCaptureSource</a> = &quot;CAPTURE_SOURCE&quot;<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af15ca89d1bcef2c6d9e2d75211a84b30"></a><!-- doxytag: member="CPulseAudioIO::sConfPlaybackSink" ref="af15ca89d1bcef2c6d9e2d75211a84b30" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string <a class="el" href="classCPulseAudioIO.html#af15ca89d1bcef2c6d9e2d75211a84b30">CPulseAudioIO::sConfPlaybackSink</a> = &quot;PLAYBACK_SINK&quot;<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6d2d16c1ca671017a7029403cca4c115"></a><!-- doxytag: member="CPulseAudioIO::sIniSectionName" ref="a6d2d16c1ca671017a7029403cca4c115" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string <a class="el" href="classCPulseAudioIO.html#a6d2d16c1ca671017a7029403cca4c115">CPulseAudioIO::sIniSectionName</a> = &quot;PULSE_IO&quot;<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="pulse__audio__io_8h_source.html">pulse_audio_io.h</a></li>
<li><a class="el" href="pulse__audio__io_8cxx.html">pulse_audio_io.cxx</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:45 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
